#include "User.h"

User::User() :
	_id(0),
	_state(USER_OFFLINE)
{
}

User::User(int id, QString name) :
	_name(name),
	_id(id),
	_state(USER_OFFLINE)
{
}

QString User::name()
{
	return _name;
}

int User::id()
{
	return _id;
}

UserState User::state()
{
	return _state;
}

void User::setName(QString name)
{
	_name = name;
}

void User::setId(int id)
{
	_id = id;
}

void User::setState(UserState state)
{
	_state = state;
}
